package com.altekis.kanbankaze.shared.events;

import java.util.List;

import com.altekis.kanbankaze.shared.Task;
import com.google.gwt.event.shared.GwtEvent;

public class TasksLoadedEvent extends GwtEvent<TasksLoadedEventHandler>{
	public static Type<TasksLoadedEventHandler> TYPE = new Type<TasksLoadedEventHandler>();
	public List<Task> tasks;
	public TasksLoadedEvent(List<Task> Tasks) {
		this.tasks = Tasks;
	}

	@Override
	public Type<TasksLoadedEventHandler> getAssociatedType() {
	    return TYPE;
	}

	@Override
	protected void dispatch(TasksLoadedEventHandler handler) {
		handler.onTasksLoaded(this);
	}
}
